<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Like
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: index.tpl 2010-09-07 17:53 idris $
 * @author     Idris
 */
?>

<h3>
  <?php echo $this->translate("like_Profile Likes"); ?> <span>(<?php echo $this->total; ?>)</span>
	<?php if ($this->total > $this->ipp): ?>
	  <a href="javascript:like.see_all_liked(<?php echo $this->subject->getIdentity(); ?>);"><?php echo $this->translate("like_See All"); ?></a>
	<?php endif; ?>
</h3>
<?php
  $count = 0;
?>
<div class="clr"></div>
<div class="list">
  <?php if (!empty($this->items)): ?>
    <?php foreach ($this->items as $like): ?>
      <?php
        if ($count >= $this->ipp){
          break;
        }
        $count++;
      ?>
      <div class="item">
        <?php echo $this->htmlLink($like->getHref(), $this->itemPhoto($like, 'thumb.icon'), array('class' => 'like_profile_thumb')); ?>
        <?php echo $this->htmlLink($like->getHref(), $like->getTitle(), array('class' => 'like_profile_title')); ?>
      </div>
    <?php endforeach; ?>
	<?php endif; ?>
	<div class="clr"></div>
</div>

<div class="clr" style="margin-bottom:10px;"></div>